/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 字典项
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
@TableName("sys_dict_item")
public class SysDictItemEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	/**
	 * 字典项ID
	 */
	@TableId
	private Long id;

	/**
	 * 字典编码
	 */
	@NotBlank(message="字典编码不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String dictCode;
	/**
	 * 字典项编码
	 */
	@NotBlank(message="字典项编码不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String dictItemCode;
	/**
	 * 字典项名称
	 */
	@NotBlank(message="字典项名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String dictItemName;
	/**
	 * 字典名称
	 */
	@TableField(exist=false)
	private String dictName;


}
